//
//  BaseViewModel.m
//  268EDU_Demo
//
//  Created by LiuXing on 2017/4/10.
//  Copyright © 2017年 edu268. All rights reserved.
//

#import "BaseViewModel.h"

@interface BaseViewModel ()

@property(nonatomic, strong, readwrite) id<ViewModelServices> services;
@property (nonatomic, strong, readwrite) NSDictionary *params;

@end

@implementation BaseViewModel

- (instancetype)initWithService:(id<ViewModelServices>)service params:(NSDictionary *)params {
    self = [super init];
    if (self) {
        self.title = params[@"title"];
        self.params = params;
        self.services = service;
    }
    return self;
}

@end
